// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Mint from 'mint-ui'
import 'mint-ui/lib/style.css'
import App from './App'
import axios from './http/http'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'
// import JsEncrypt from 'jsencrypt/bin/jsencrypt'
// Vue.prototype.$jsEncrypt = JsEncrypt

Vue.use(Mint)
Vue.config.productionTip = false
Vue.prototype.$http = axios
Vue.use(ElementUI)

import filters from './filters'

Object.keys(filters).forEach((key) => { Vue.filter(key, filters[key][key]) })
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: {App}
})
